{literal}
<script type="text/javascript">
    $(document).ready(function(){
        $("#form_login").validate({
            rules: {
	            senha2: { equalTo: '#senha'},
	            senha: { required: true },
	            senha2: { required: true, equalTo: '#senha' }
            },
            messages: {
                senha: {required: "<br>Obrigatorio"},
                senha2: {required: "<br>Obrigatorio", equalTo:"<br>Senha nao confere"}
            },
            submitHandler: function(form) {
				jqAjaxForm(form, "div_mensagem");
			}
        });
    }); //fecha $(
</script>
{/literal}
<center>
<form id="form_login" name="form_login" method="post" action="{$_site.url}login/troca-senha">
<input type="hidden" name="usuario_id" id="usuario_id" value="{$usuario_id}">
<br><br>
<table width="350" border="0" cellspacing="0" cellpadding="0" class="mvTituloFundo">
  <tr>
	<td>
	Troca de senha
	</td>
  </tr>
</table>
<table width="350" border="0" cellspacing="0" cellpadding="0">                
<tr>
  <td class="contForm">
	  <table width="100%" border="0" cellspacing="3" cellpadding="10">
	      <tr>
	        <td width="30%" valign="top" class="fundoTituloForm paddingTotal5">&nbsp;&nbsp;Nova senha:</td>
	        <td align="left" class="bordaFormResp paddingTotal5"><input type="password" name="senha" id="senha" size="30" maxlength="50" class="formulario"/></td>
	      </tr>
	      <tr>
	        <td width="30%" valign="top" class="fundoTituloForm paddingTotal5" nowrap="nowrap">&nbsp;&nbsp;Confirma nova senha:</td>
	        <td align="left" class="bordaFormResp paddingTotal5"><input type="password" name="senha2" id="senha2" size="30" maxlength="50" class="formulario"/></td>
	      </tr>
	  </table>
  </td>
</tr>
<tr>
	<td valign="bottom" align="center"><br></br>{$mensagem}</td>
</tr>
<tr>
  <td class=" paddingBottom15" align="center"><!-- === Botões ( Salvar e Limpar ) === -->
	<br>
  	<span class="paddingRight15">
		<input type="submit" value="Entrar" class="botao">
	</span>
	<span class="paddingRight15">
	
		<input name="calcelar" type="button" id="calcelar" value="Cancelar" onclick="document.location.href='{$_site.url}';" class="botao" />
	</span>
	<br><br><br><br>
   </td>
</tr>
</table>
</form>
</center>